﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Styx.Helpers;
using System.IO;
using Styx;
using Styx.Common;
using System.ComponentModel;
using DefaultValue = Styx.Helpers.DefaultValueAttribute;
using Styx.TreeSharp;

namespace Guardian
{
    public class SettingsBear : Settings
    {
        public static readonly SettingsBear myPrefs = new SettingsBear();

        public SettingsBear()
            : base(
                Path.Combine(Utilities.AssemblyDirectory,
                    string.Format(@"Routines/Settings/{0}/Druid/SettingsBear-{1}.xml", StyxWoW.Me.RealmName, StyxWoW.Me.Name))
                )
        {
        }

        public enum Keypress
        {
            NONE,
            LSHIFT,
            RSHIFT,
            LCTRL,
            RCTRL,
            LALT,
            RALT
        };

        [Setting]
        [DefaultValue(Keypress.NONE)]
        [Category("Hotkeys")]
        [DisplayName("Pause Aoe Key")]
        [Description("Pause Aoe Key")]
        public Keypress StopAoeKey { get; set; }

        [Setting]
        [DefaultValue(Keypress.NONE)]
        [Category("Hotkeys")]
        [DisplayName("Pause CombatRoutine Key")]
        [Description("Pause CR Key")]
        public Keypress StopCRKey { get; set; }


        [Setting]
        [DefaultValue(true)]
        [Category("Hotkeys")]
        [DisplayName("Print Raidstyle Messages")]
        public bool PrintRaidstyleMsg { get; set; }

        // trinkets section
        [Setting]
        [DefaultValue(false)]
        [Category("Trinket 1")]
        [DisplayName("Auto use")]
        [Description("Auto use trinket 1")]
        public bool AutoTrinket1 { get; set; }

        [Setting]
        [DefaultValue(0)]
        [Category("Trinket 1")]
        [DisplayName("HP %")]
        [Description("Use trinket 1 below HP %")]
        public int trinket1hppercent { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Trinket 1")]
        [DisplayName("Crowd Control")]
        [Description("Use trinket 1 when you are Crowd Controlled")]
        public bool trinket1crowdcontrolled { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Trinket 1")]
        [DisplayName("Dps boost")]
        [Description("Use trinket 1 as DPS boost")]
        public bool trinket1dpsboost { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Trinket 2")]
        [DisplayName("Auto use")]
        [Description("Auto use trinket 2")]
        public bool AutoTrinket2 { get; set; }

        [Setting]
        [DefaultValue(0)]
        [Category("Trinket 2")]
        [DisplayName("HP %")]
        [Description("Use trinket 2 below HP %")]
        public int trinket2hppercent { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Trinket 2")]
        [DisplayName("Crowd Control")]
        [Description("Use trinket2 when you are Crowd Controlled")]
        public bool trinket2crowdcontrolled { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Trinket 2")]
        [DisplayName("Dps boost")]
        [Description("Use trinket 2 as DPS boost")]
        public bool trinket2dpsboost { get; set; }

        //movement

        [Setting]
        [DefaultValue(false)]
        [Category("Movement")]
        [DisplayName("Auto Target")]
        [Description("Auto Target")]
        public bool AutoTargeting { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Movement")]
        [DisplayName("Movement")]
        [Description("Movement")]
        public bool AutoMovement { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Movement")]
        [DisplayName("Auto Facing")]
        [Description("Auto Facing")]
        public bool AutoFacing { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Movement in Raids, Instances, Dungeons")]
        [DisplayName("Disable Auto Move")]
        [Description("Disable Auto Movement in Raids, Instances, Dungeons")]
        public bool DisableAutoMovement { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Movement in Raids, Instances, Dungeons")]
        [DisplayName("Disable Auto Target")]
        [Description("Disable Auto Targeting in Raids, Instances, Dungeons")]
        public bool DisableAutoTargeting { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Movement in Raids, Instances, Dungeons")]
        [DisplayName("Disable Auto Facing")]
        [Description("Disable Auto Facing in Raids, Instances, Dungeons")]
        public bool DisableAutoFacing { get; set; }

        //protection
        [Setting]
        [DefaultValue(55)]
        [Category("Protection")]
        [DisplayName("Healthstone HP %")]
        [Description("Use Healthstone below HP %")]
        public int PercentHealthstone { get; set; }

        [Setting]
        [DefaultValue(75)]
        [Category("Protection")]
        [DisplayName("Barkskin HP %")]
        [Description("Use Barkskin below HP %")]
        public int PercentBarkskin { get; set; }

        [Setting]
        [DefaultValue(25)]
        [Category("Protection")]
        [DisplayName("Survival Instincts HP %")]
        [Description("Use Survival Instincts below HP %")]
        public int PercentSurvivalInstincts { get; set; }

        [Setting]
        [DefaultValue(45)]
        [Category("Protection")]
        [DisplayName("Frenzied Regeneration HP %")]
        [Description("Use Frenzied Regeneration below HP %")]
        public int PercentFrenziedRegeneration { get; set; }

        [Setting]
        [DefaultValue(65)]
        [Category("Protection")]
        [DisplayName("Savage Defense HP %")]
        [Description("Use Savage Defense below HP %")]
        public int PercentSavageDefense { get; set; }

        //symbiosis

        [Setting]
        [DefaultValue(false)]
        [Category("Symbiosis")]
        [DisplayName("Auto cast Symbiosis")]
        [Description("Auto Cast Symbiosis on DK, Monk or Pala")]
        public bool AutoSymbiosis { get; set; }

        [Setting]
        [DefaultValue(30)]
        [Category("Symbiosis")]
        [DisplayName("Elusive Brew HP %")]
        [Description("Use Elusive Brew below HP %")]
        public int PercentElusiveBrew { get; set; }

        //Rebirth
        [Setting]
        [DefaultValue(false)]
        [Category("Rebirth")]
        [DisplayName("Auto Res Tank")]
        [Description("Auto Res Tank with Rebirth Proc")]
        public bool AutoResTank { get; set; }

        [Setting]
        [DefaultValue(false)]
        [Category("Rebirth")]
        [DisplayName("Auto Res Healer")]
        [Description("Auto Res Healer with Rebirth Proc")]
        public bool AutoResHealer { get; set; }

        //resting
        [Setting]
        [DefaultValue(85)]
        [Category("Resting")]
        [DisplayName("Rejuvenation HP %")]
        [Description("Use Rejuvenation below HP % Out of Combat")]
        public int PercentRejuvenation { get; set; }

        [Setting]
        [DefaultValue(70)]
        [Category("Resting")]
        [DisplayName("Healing HP %")]
        [Description("Use Healing Touch below HP % Out of Combat")]
        public int PercentHealingTouch { get; set; }

        [Setting]
        [DefaultValue(45)]
        [Category("Resting")]
        [DisplayName("Eat Food HP %")]
        [Description("Eat Food below HP % Out of Combat")]
        public int PercentEatFood { get; set; }
    }
}
